<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
    <title>PHPXRef 0.7.1 : Tomato Project : Detail view of verimg.class.php</title>
    <link rel="stylesheet" href="../../../sample.css" type="text/css">
    <link rel="stylesheet" href="../../../sample-print.css" type="text/css" media="print">
    <style id="hilight" type="text/css"></style>
    <meta http-equiv="content-type" content="text/html;charset=UTF-8">
</head>
<body bgcolor="#ffffff" text="#000000" link="#801800" vlink="#300540" alink="#ffffff">
<table class="pagetitle" width="100%">
	<tr>
        <td valign="top" class="pagetitle">
            [ <a href="../../../index.html">Index</a> ] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_classes/index.html">Classes</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_functions/index.html">Functions</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_variables/index.html">Variables</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_constants/index.html">Constants</a>] 
			&nbsp;&nbsp;&nbsp; [<a href="../../../_tables/index.html">Tables</a>]
        </td>
        <td align="right" class="pagetitle">
		    <h2 style="margin-bottom: 0px">PHP Cross Reference of Tomato Project</h2>
	    </td>
    </tr>
</table>


<!-- Generated by PHPXref 0.7.1 at Thu Sep 10 15:54:52 2020 -->
<!-- PHPXref (c) 2000-2010 Gareth Watts - gareth@omnipotent.net -->
<!-- http://phpxref.sourceforge.net/ -->

<script src="../../../phpxref.js" type="text/javascript"></script>
<script language="JavaScript" type="text/javascript">
<!--
ext='.html';
relbase='../../../';
subdir='core/v0.1/ext';
filename='verimg.class.php.html';
cookiekey='phpxref';
handleNavFrame(relbase, subdir, filename);

// -->
</script>
<script language="JavaScript" type="text/javascript">
if (gwGetCookie('xrefnav')=='off')
  document.write('<p class="navlinks">[ <a href="javascript:navOn()">Show Explorer<\/a> ]<\/p>');
else
  document.write('<p class="navlinks">[ <a href="javascript:navOff()">Hide Explorer<\/a> ]<\/p>');
</script>
<noscript>
<p class="navlinks">
[ <a href="../../../nav.html" target="_top">Show Explorer</a> ]
[ <a href="index.html" target="_top">Hide Navbar</a> ]
</p>
</noscript>
<script language="JavaScript" type="text/javascript">
<!--

document.writeln('<table align="right" class="searchbox-link"><tr><td><a class="searchbox-link" href="javascript:void(0)" onMouseOver="showSearchBox()">Search</a><br>');
document.writeln('<table border="0" cellspacing="0" cellpadding="0" class="searchbox" id="searchbox">');
document.writeln('<tr><td class="searchbox-title">');
document.writeln('<a class="searchbox-title" href="javascript:showSearchPopup()">Search History +</a>');
document.writeln('<\/td><\/tr>');

document.writeln('<tr><td class="searchbox-body" id="searchbox-body">');
document.writeln('<form name="search" style="margin:0px; padding:0px" onSubmit=\'return jump()\'>');
document.writeln('<a class="searchbox-body" href="../../../_classes/index.html">Class<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="classname"><br>');
document.writeln('<a id="funcsearchlink" class="searchbox-body" href="../../../_functions/index.html">Function<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="funcname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_variables/index.html">Variable<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="varname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_constants/index.html">Constant<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="constname"><br>');
document.writeln('<a class="searchbox-body" href="../../../_tables/index.html">Table<\/a>: ');
document.writeln('<input type="text" size=10 value="" name="tablename"><br>');
document.writeln('<input type="submit" class="searchbox-button" value="Search">');
document.writeln('<\/form>');
document.writeln('<\/td><\/tr><\/table>');
document.writeln('<\/td><\/tr><\/table>');
// -->
</script>
<div id="search-popup" class="searchpopup"><p id="searchpopup-title" class="searchpopup-title">title</p><div id="searchpopup-body" class="searchpopup-body">Body</div><p class="searchpopup-close"><a href="javascript:gwCloseActive()">[close]</a></p></div>
<h2 class="details-heading"><a href="./index.html">/core/v0.1/ext/</a> -> <a href="verimg.class.php.source.html">verimg.class.php</a> (summary)</h2>
<div class="details-summary">
<p class="viewlinks">[<a href="verimg.class.php.source.html">Source view</a>]
[<a href="javascript:window.print();">Print</a>]
[<a href="../../../_stats.html">Project Stats</a>]</p>
<p><b>(no description)</b></p>
<table>
<tr><td align="right">File Size: </td><td>187 lines (6 kb)</td></tr>
<tr><td align="right">Included or required:</td><td>0 times</td></tr>
<tr><td align="right" valign="top">Referenced: </td><td>0 times</td></tr>
<tr><td align="right" valign="top">Includes or requires: </td><td>0 files</td></tr>
</table>
<h3>Defines 1 class</h3>
<div class="inset">
<p><b>verimg::</b> (13 methods):<br>
&nbsp;&nbsp;<a href="#__construct">__construct</a>()<br>
&nbsp;&nbsp;<a href="#set">Set</a>()<br>
&nbsp;&nbsp;<a href="#create">Create</a>()<br>
&nbsp;&nbsp;<a href="#out">Out</a>()<br>
&nbsp;&nbsp;<a href="#getcode">GetCode</a>()<br>
&nbsp;&nbsp;<a href="#base64">Base64</a>()<br>
&nbsp;&nbsp;<a href="#img">Img</a>()<br>
&nbsp;&nbsp;<a href="#check">Check</a>()<br>
&nbsp;&nbsp;<a href="#getcreateimage">getCreateImage</a>()<br>
&nbsp;&nbsp;<a href="#createvercode">createVercode</a>()<br>
&nbsp;&nbsp;<a href="#setdisturbcolor">setDisturbColor</a>()<br>
&nbsp;&nbsp;<a href="#outputtext">outputText</a>()<br>
&nbsp;&nbsp;<a href="#__destruct">__destruct</a>()<br>
</p>
</div>
</div>
<br><div class="details-funclist">
<div class="details-classinfo">
<p class="details-classtitle">Class: <a name="verimg"><b>verimg</b></a>&nbsp;&nbsp;- <a href="../../../_classes/verimg.html"><small>X-Ref</small></a>
</p>
<div class="inset"><table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="__construct" onClick="logFunction('__construct', 'verimg.class.php.source.html#l18')" href="verimg.class.php.source.html#l18">__construct</a>(<a href="../../../_variables/width.html">$width</a> = 100, <a href="../../../_variables/height.html">$height</a> = 38, <a href="../../../_variables/codeNum.html">$codeNum</a> = 4, <a href="../../../_variables/fontSize.html">$fontSize</a> = 14)&nbsp;&nbsp;
<a href="../../../_functions/__construct.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>构造方法<BR>
</b><BR><b>param:</b> int&nbsp;&nbsp;&nbsp;&nbsp;$width&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置验证码图片的宽度<br>
<b>param:</b> int&nbsp;&nbsp;&nbsp;&nbsp;$height&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;设置验证码图片的高度<br>
<b>param:</b> int&nbsp;&nbsp;&nbsp;&nbsp;$codeNum&nbsp;&nbsp;&nbsp;&nbsp;设置验证码中字符的个数<br>
<b>param:</b> int&nbsp;&nbsp;&nbsp;&nbsp;$fontSize&nbsp;&nbsp;&nbsp;&nbsp;设置验证码中字符的尺寸<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="set" onClick="logFunction('set', 'verimg.class.php.source.html#l33')" href="verimg.class.php.source.html#l33">Set</a>(<a href="../../../_variables/key.html">$key</a>, <a href="../../../_variables/value.html">$value</a>)&nbsp;&nbsp;
<a href="../../../_functions/set.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><i>No description</i></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="create" onClick="logFunction('create', 'verimg.class.php.source.html#l37')" href="verimg.class.php.source.html#l37">Create</a>()&nbsp;&nbsp;
<a href="../../../_functions/create.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><i>No description</i></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="out" onClick="logFunction('out', 'verimg.class.php.source.html#l65')" href="verimg.class.php.source.html#l65">Out</a>()&nbsp;&nbsp;
<a href="../../../_functions/out.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><i>No description</i></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="getcode" onClick="logFunction('getcode', 'verimg.class.php.source.html#l72')" href="verimg.class.php.source.html#l72">GetCode</a>()&nbsp;&nbsp;
<a href="../../../_functions/getcode.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><i>No description</i></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="base64" onClick="logFunction('base64', 'verimg.class.php.source.html#l76')" href="verimg.class.php.source.html#l76">Base64</a>()&nbsp;&nbsp;
<a href="../../../_functions/base64.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><i>No description</i></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="img" onClick="logFunction('img', 'verimg.class.php.source.html#l91')" href="verimg.class.php.source.html#l91">Img</a>(<a href="../../../_variables/name.html">$name</a> = '_verimgcode')&nbsp;&nbsp;
<a href="../../../_functions/img.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>输出图像并把验证码保存到SESSION<BR>
</b><BR><b>param:</b> string $name [SESSION中验证码的键名]<br>
<b>return:</b> [type]&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[description]<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="check" onClick="logFunction('check', 'verimg.class.php.source.html#l109')" href="verimg.class.php.source.html#l109">Check</a>(<a href="../../../_variables/code.html">$code</a>, <a href="../../../_variables/name.html">$name</a> = '_verimgcode')&nbsp;&nbsp;
<a href="../../../_functions/check.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>检查验证码是否正确<BR>
</b><BR><b>param:</b> string $code [用户输入的验证码（不区分大小写）]<br>
<b>param:</b> string $name [SESSION中保存验证码的键名]<br>
<b>return:</b> boolean&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;[description]<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="getcreateimage" onClick="logFunction('getcreateimage', 'verimg.class.php.source.html#l126')" href="verimg.class.php.source.html#l126">getCreateImage</a>()&nbsp;&nbsp;
<a href="../../../_functions/getcreateimage.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><i>No description</i></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="createvercode" onClick="logFunction('createvercode', 'verimg.class.php.source.html#l133')" href="verimg.class.php.source.html#l133">createVercode</a>()&nbsp;&nbsp;
<a href="../../../_functions/createvercode.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>随机生成指定个数的字符,去掉容易混淆的字符oOLlz和数字012<BR>
</b><BR><b>return:</b> [string] [description]<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="setdisturbcolor" onClick="logFunction('setdisturbcolor', 'verimg.class.php.source.html#l148')" href="verimg.class.php.source.html#l148">setDisturbColor</a>()&nbsp;&nbsp;
<a href="../../../_functions/setdisturbcolor.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>添加干扰<BR>
</b><BR></td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="outputtext" onClick="logFunction('outputtext', 'verimg.class.php.source.html#l165')" href="verimg.class.php.source.html#l165">outputText</a>()&nbsp;&nbsp;
<a href="../../../_functions/outputtext.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>随机颜色、随机摆放、<BR>
</b><BR><b>return:</b> [type] [description]<br>
</td></tr></table>

<br>
<table border="0" width="80%" class="funcinfo"><tr class="funcinfo-title"><td>
<a name="__destruct" onClick="logFunction('__destruct', 'verimg.class.php.source.html#l180')" href="verimg.class.php.source.html#l180">__destruct</a>()&nbsp;&nbsp;
<a href="../../../_functions/__destruct.html"><small>X-Ref</small></a>
</td></tr><tr class="funcinfo-body"><td><b>销毁图像资源释放内存<BR>
</b><BR></td></tr></table>

<br>
</div>
</div>

</div>
<!-- A link to the phpxref site in your customized footer file is appreciated ;-) -->
<br><hr>
<table width="100%">
	<tr><td>Generated: Thu Sep 10 15:54:52 2020</td>
	<td align="right"><i>Cross-referenced by <a href="http://phpxref.sourceforge.net/">PHPXref 0.7.1</a></i></td>
	</tr>
</table>
</body></html>
